package com.lxk.mall.pms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lxk.mall.pms.domain.PmsProductProperty;
import com.lxk.mall.pms.domain.vo.property.PmsProductPropertyVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 商品属性项Mapper接口
 *
 * @author Lion Li
 * @date 2024-06-06
 */
public interface PmsProductPropertyMapper extends BaseMapperPlus<PmsProductProperty, PmsProductPropertyVo> {

    default PmsProductProperty selectByName(String name) {
        return selectOne(new LambdaQueryWrapper<PmsProductProperty>().eq(PmsProductProperty::getName, name));
    }
}
